package com.itheima.reader;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/*
文件字符流 读取数据
 */
public class Demo01 {

    public static void main(String[] args) throws IOException {

        FileReader reader = new FileReader("day13\\aaa\\a.txt");
       /* while (true) {
            int read = reader.read();
            System.out.println((char)read);
            if(read==-1){
                break;
            }
        }*/
       int read;
       while ((read=reader.read())!=-1){
           System.out.println((char)read);
       }

        reader.close();
    }
}
